package com.example.daibanshiwu.pojo;

import java.util.Arrays;

public class File {
    private int id;  // 文件id
    private String messageId;  // 事务id
    private String excelName;  // excel文件名
    private byte[] excelData;  // excel文件数据
    private String fileName;   // 附件文件名
    private byte[] fileData;   // 附件文件数据

    public File() {}

    public File(String messageId, String excelName, int id, String fileName, byte[] excelData, byte[] fileData) {
        this.messageId = messageId;
        this.excelName = excelName;
        this.id = id;
        this.fileName = fileName;
        this.excelData = excelData;
        this.fileData = fileData;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getExcelName() {
        return excelName;
    }

    public void setExcelName(String excelName) {
        this.excelName = excelName;
    }

    public byte[] getExcelData() {
        return excelData;
    }

    public void setExcelData(byte[] excelData) {
        this.excelData = excelData;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getFileData() {
        return fileData;
    }

    public void setFileData(byte[] fileData) {
        this.fileData = fileData;
    }

    @Override
    public String toString() {
        return "File{" +
                "id=" + id +
                ", messageId='" + messageId + '\'' +
                ", excelName='" + excelName + '\'' +
                ", excelData=" + Arrays.toString(excelData) +
                ", fileName='" + fileName + '\'' +
                ", fileData=" + Arrays.toString(fileData) +
                '}';
    }
}
